package com.csyf.manager.utils;

public class ResultUtli {

	public static ResultEntity  DEFAULT_SUCCESS(String msg,Object object){
		return GET_RESULTENTITY(200,msg,object);
	}

	public static ResultEntity DEFAULT_ERROR(String msg) {
		return GET_RESULTENTITY(99, msg, null);
	}

	public static ResultEntity  SUCCESS(Integer code, String msg,Object object){
		return GET_RESULTENTITY(code,msg,object);
	}

	public static ResultEntity  ERRO(Integer code, String msg,Object object){
		return GET_RESULTENTITY(code,msg,object);
	}

	public static ResultEntity GET_RESULTENTITY(Integer code, String msg,Object object){
		return new ResultEntity(code,msg,object);
	}


}